<template>
    <div>
        <el-button type="info" @click="handleExit">退出</el-button>
    </div>
</template>
<script>
export default {
  methods: {
    // 退出
    handleExit () {
      window.sessionStorage.clear() // 清空sessionStorage
      this.$router.push('/login')
    }
  }
}
</script>
